package climspace.hadoop;

/**
 * @author dnguyen
 * interface between ejb & hadoop
 *
 */
public interface ArchiveStation {
	public void uploadDataFile(String fileName);
	
	/**
	 * uploadDataFileMesonet method will store data for mesonet in
	 * climspace archive.
	 * @param fileName the data filename
	 * @param mesonet the name of the mesonet
	 */
	public void uploadDataFileMesonet(String fileName, String mesonet);
	
	/**
	 * output a file by the name jobid.out to outFolder
	 * @param jobID
	 * @param outFolder
	 * @return absolute path to the file
	 */
	public String downloadDataFileByJobID(String jobID, String outFolder);
	
	/**
	 * @param station Use "*" for all stations
	 * @param fromDate Use "*" for all dates
	 * @param toDate Use "*" for all dates
	 * @param jobID convention is the username_yyyyMMddhhmmss (ex: jsmith20120310052501)
	 * @return
	 */
	public int submitHistoricalDataJob(String station, String fromDate, String toDate, String jobID);
	
	public void submitHistoricalDataByDateJob(String fromDate, String toDate, String jobID);
	
	public void submitHistoricalDataByStationJob(String station, String jobID);
}
